﻿using BluetoothMachine.Enums;
using BluetoothMachine.Lucifer;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BluetoothMachine.DeviceCommunications
{
    public class CommSerialPort : ICommunication
    {
        public CommSerialPort()
        {

        }

        public int Index { get; set; }
        public DeviceType Types { get; set; }
        public bool CommType { get; set; }
        public List<byte> ByteBuffer { get; set; }

        public void Connection()
        {

        }

        public void Disconnect()
        {

        }

        public void Read(object obj = null)
        {

        }

        public byte[] Read()
        {
            return new byte[0];
        }

        public T ReadClass<T>(IProtocol protocol) where T : new()
        {
            return new T();
        }

        public T ReadClass<T>(object obj)
        {
            return (T)new object();
        }

        public void Write(byte[] bytes)
        {

        }

        public void Write(IProtocol protocol)
        {

        }
    }
}
